<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <div class="logo">
          <img src="../assets/image/智能机器人.png" alt="">
          <span>机器人面试官</span>
        </div>
        <div>
          <div class="avatar">
            <span>王</span>
            <div>
              <div class="username">王权</div>
              <div class="role">管理员</div>
            </div>
          </div>
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <asideBot></asideBot>
        </el-aside>
        <el-main>
          <RouterView></RouterView>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang="ts">
// import { ref } from 'vue'
import asideBot from '@/components/aside.vue'
</script>

<style scoped>
.el-header {
  background-color: #ffffff;
  color: #333;
  text-align: center;
  /* line-height: 60px; */
  height: 60px;
  display: flex;
  align-items: center;
  padding-bottom: 5px;
  justify-content: space-between;
}

.el-header .logo {
  display: flex;
  align-items: center;
  color: #3498db;
}

.el-header .logo img {
  width: 40px;
  height: 40x;
  margin-right: 10px;
}

.el-header .avatar {
  display: flex;
}

.el-header .avatar span {
  display: inline-block;
  background-color: #3498db;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  line-height: 35px;
  color: #fff;
  margin-right: 10px;
}

.el-header .avatar>div {
  display: flex;
  flex-direction: column;
  align-items: start;
  font-size: 14px;
}

.el-aside{
  background-color: #fff;
}
.el-main {
  background-color: #f5f5f5;
}
</style>